﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace NCEdu.Web.subjectPlain
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int subjectPlainId=(Convert.ToInt32(strid));
					ShowInfo(subjectPlainId);
				}
			}
		}
		
	private void ShowInfo(int subjectPlainId)
	{
		NCEdu.BLL.subjectPlain bll=new NCEdu.BLL.subjectPlain();
		NCEdu.Model.subjectPlain model=bll.GetModel(subjectPlainId);
		this.lblsubjectPlainId.Text=model.subjectPlainId.ToString();
		this.lblPlainId.Text=model.PlainId.ToString();
		this.lblteacherName.Text=model.teacherName;

	}


    }
}
